<?php

function setmenu($op,$cont){
    $style = '';
    
    if($op == $cont) $style = 'class="action"';
    
    echo $style;
}

?>

<?php setmenu('index',$this->controller); ?> 

<header>
    <div class="noindex">
        <nav id="st-tp-menu">
            <ul>
                <li><a href="<?php echo $this->urlbase; ?>/" <?php setmenu('index',$this->controller); ?>><h1><img src="<?php echo $this->urlbase.'/public/media/images/logo_topo.png'; ?>" alt="<?php echo $this->titulo; ?>"/></h1></a></li>                
                <li><a href="<?php echo $this->urlbase; ?>/sobre" <?php setmenu('sobre',$this->controller); ?>>sobre a Day</a></li>
                <li><a href="<?php echo $this->urlbase; ?>/dermato" <?php setmenu('dermato',$this->controller); ?>>o que &eacute; dermato funcional</a></li>
                <li><a href="<?php echo $this->urlbase; ?>/procedimentos" <?php setmenu('procedimentos',$this->controller); ?>>procedimentos</a></li>
                <li><a href="<?php echo $this->urlbase; ?>/blog" <?php setmenu('blog',$this->controller); ?>>blog</a></li>
                <li><a href="<?php echo $this->urlbase; ?>/pacotes" <?php setmenu('pacotes',$this->controller); ?>> pacotes</a></li>
                <li><a href="<?php echo $this->urlbase; ?>/contato" <?php setmenu('contato',$this->controller); ?>>contato</a></li>
            </ul>
        </nav>
  </div>
</header>